package org.spring.learn.demo.annotation.configures.conditional;

import org.junit.Test;
import org.spring.learn.project.entity.Person;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class MyTest {

    @Test
    public void test(){

        ApplicationContext app = new AnnotationConfigApplicationContext(MyConfig.class);
        System.out.println("IoC容器创建");
//        Person person1 =(Person) app.getBean("person");
//
//        Person person2 =(Person) app.getBean("person");
//        System.out.println(person1==person2);
    }
}
